<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<!-- Title -->

<title> Ajax PHP Penny Auction Version  </title>

<!-- Meta Tags -->
 <META name=description content=Softbiz.Online.Auctions.v1.0>

 <META name=keywords content=Softbiz.Online.Auctions.v1.0>


<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">




<![if !IE]>
<link rel="stylesheet" type="text/css" href="global_not_ie.css" />
<![endif]>



<!--[if gte IE 6]>
<link rel="stylesheet" type="text/css" href="global_ie.css" />
<![endif]-->






<script type="text/javascript" src="js/cron.js" language="Javascript"></script>

        


   <script type="text/javascript" language="Javascript">



function check(last,count)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  alert("Your browser does not support XMLHTTP!");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
       
       var x3=xmlhttp.responseText;
      //alert(xmlhttp.responseText);
                       
// var x=Get_Auction( "auction_data" );
  
var x2=x3.split("|");



              currentservertime=x2[0];
if ( currentservertime != last ) {

               document.getElementById('time').innerHTML="<font size=+4 color=green >" +currentservertime+ " WORKING PROPERLY</font>"; 
       
       }
    
    count2 = count;
    count3 = count2 + 1;
       if ( count > 60 ) {
       
            if ( currentservertime == last ) { 

               document.getElementById('time').innerHTML="<font size=+4 color=red >" +currentservertime+ "<BR> CRON DOWN</font>"; 
       
                  }
        
        count3 = 0
        
                }
                
    //check(currentservertime);                          
           //alert(count3);                      
  }
}
bidurl = "cronfiles/get_time2.txt";
xmlhttp.open("GET",bidurl,true);
xmlhttp.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );

xmlhttp.send(null);

       setTimeout("check(currentservertime,count3)", 1000);
         //  alert('working');
}
   
check(0,0);

  
  
  
          </script>
  
  </head>
  <body>

  <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
  <CENTER><DIV id=time >   </DIV></CENTER>

  </body>
</html>
